from technology.models import Technology, Know, Use


def list_technologies_by_user(user):
    techs = Technology.objects.filter(know__uid=user)
    return techs


def all_technologies():
    techs = Technology.objects.filter()
    return techs


def list_technologies_by_project(project):
    techs = Technology.objects.filter(use__pid=project)
    return techs
